<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="__ROOT__/Public/Admin/css/shortcut icon" href="favicon.ico">
    <link href="__ROOT__/Public/Admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/animate.css" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/js/plugins/cityPicker/city-picker.css" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/js/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/edit.css" rel="stylesheet"/>
    <link href="__ROOT__/Public/Admin/css/plugins/upload/u-jun.css" rel="stylesheet"/>
    <link href="__ROOT__/Public/Admin/css/plugins/upload/u-jun.global.css" rel="stylesheet"/>

<style>

</style>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <form class="form-horizontal m-t js-ajax-forms" id="markfrom" action="{:U('Admin/WaterMark/save',array('type'=>'add'))}" method="post" enctype="multipart/form-data">
           	<input type="hidden" name="ID" value="{$editdata['ID']}">
            <div class="col-sm-8  col-md-offset-2">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">名称: <span style="color: red">*</span> </label>
                                <div class="col-sm-8">
                                    <input id="Name" name="Name" class="form-control" type="text" aria-required="true" aria-invalid="true" class="error" value="{$editdata.Title}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">上传图片<span style="color: red">*</span></label>
                                <div class="col-sm-8">
								<div id="uploader-demo">
								    <!--用来存放item-->
								    <div id="fileList" class="uploader-list"></div>
								    <div id="filePicker" class="btn btn-primary keep" >选择图片</div>
								</div>

							      	<div class="u-mt-10 clearfix" id="fileContent"></div>
							      		<input type="hidden" name="ImgUrl" value="">
	                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <button class="btn btn-primary keep" type="submit">保存</button>
                                    <a class="btn btn-white" href="javascript:void(0);" onclick="self.location=document.referrer;">返回</a>
                                </div>
                            </div>
                        
                    </div>
                </div>
            </div>
            </form>
        </div>
    </div>
    

	<script src="__ROOT__/Public/Admin/js/jquery-1.7.2.min.js"></script>
	<script src="__ROOT__/Public/Admin/js/plugins/validate/jquery.validate.min.js"></script>
	<script src="__ROOT__/Public/Admin/js/ajaxForm.js"></script>
	<script src="__ROOT__/Public/Admin/js/plugins/sweetalert/sweetalert.min.js"></script>
	<script src="__ROOT__/Public/Admin/js/plugins/webuploader/webuploader.min.js"></script>
	<script src="__ROOT__/Public/Admin/js/plugins/webuploader/contract-upload.js"></script>
    <script>
	$(document).ready(function () {
		var baseUrl="__ROOT__/Public/Admin/js/plugins/webuploader";
		var serverUrl="/index.php?m=Admin&c=ContractTemplate&a=markupload";
		var limitNum=1;
		var upload = new Upload();
		upload.init(serverUrl,serverUrl,limitNum);
    });
    </script>

</body>

</html>
